//
//  LYQEditPositionPickerView.h
//  ZCProject
//
//  Created by Zheng on 2016/12/28.
//  Copyright © 2016年 Zheng. All rights reserved.
//

#import <UIKit/UIKit.h>

@class LYQEditPositionModel;

typedef enum : NSUInteger {
    LYQEditPositionPickerViewStyleEducation, //学历
    LYQEditPositionPickerViewStyleExperience, //工作经验
    LYQEditPositionPickerViewStyleSalary, //薪资范围
} LYQEditPositionPickerViewStyle;


@protocol LYQEditPositionPickerViewDelegate <NSObject>

- (void)updateUIWithStyle:(LYQEditPositionPickerViewStyle)style;

@end

@interface LYQEditPositionPickerView : UIView <UIPickerViewDelegate,UIPickerViewDataSource>

@property (nonatomic, strong) UIView *chooseView; //picker的背景图
@property (nonatomic, strong) UIPickerView *pickerView; //选择视图
@property (nonatomic, strong) UIButton *esrBtn; //确定
@property (nonatomic, strong) UIButton *cnlBtn; //取消

- (void)showStateActionWithStyle:(LYQEditPositionPickerViewStyle)style;

@property (nonatomic, strong) NSArray *titlesArr; //学历,工作年限
@property (nonatomic, copy) NSString *education;
@property (nonatomic, copy) NSString *experience;

@property (nonatomic, strong) NSArray *salaryArr;
@property (nonatomic, strong) NSMutableArray *minArr; //薪资最小
@property (nonatomic, strong) NSMutableArray *maxArr; //薪资最大
@property (nonatomic, copy) NSString *minSalary;
@property (nonatomic, copy) NSString *maxSalary;


@property (nonatomic, strong) LYQEditPositionModel *model;


@property (nonatomic) LYQEditPositionPickerViewStyle style;

@property (nonatomic, assign) id<LYQEditPositionPickerViewDelegate> delegate;


@end

